package com.dnjn.happiness.emo.domain.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.time.LocalDate;
import java.util.HashMap;
import java.util.Map;

/**
 * 用户AI情绪userRecordcontroller对象 emo_user_record_fer
 *
 * @author amber
 * @date 2023-12-04
 */
@Accessors(chain = true)
@ToString
@Getter
@Setter
public class UserRecordFerAddVO implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 当前时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Schema(description = "当前时间")
    private LocalDate currDate;

    /**
     * 情绪
     */
    @Schema(description = "情绪Code")
    private String emotionCode;

    @Schema(description = "情绪")
    private String emotion;

    @NotBlank(message = "imageUrl 不能为空")
    @Schema(description = "图片Url", requiredMode = Schema.RequiredMode.REQUIRED)
    private String imageUrl;
    /**
     * 快乐值
     */
    @Schema(description = "快乐值", accessMode = Schema.AccessMode.READ_ONLY)
    private Long modScore;

    /**
     * UserId
     */
    @Schema(description = "UserId")
    private Long userId;

    private Long deptId;

    private String deptName;

    private String nickName;

    @Schema(description = "心情状态", requiredMode = Schema.RequiredMode.REQUIRED)
    private String currMood;
    @Schema(description = "心情状态CN")
    private String currMoodCn;

    @Schema(description = "心情记录")
    private String currContent;

    /**
     * 快乐值
     */
    private Integer happinessScore;


    /**
     * 请求参数
     */
    @TableField(exist = false)
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private Map<String, Object> params;


    public Map<String, Object> getParams() {
        if (params == null) {
            params = new HashMap<>();
        }
        return params;
    }

    public void setParams(Map<String, Object> params) {
        this.params = params;
    }

}
